package com.example.demo.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.mp.entity.Announcement;
import com.example.demo.mp.entity.AnnouncementCategory;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

public interface AnnouncementMapper extends BaseMapper<Announcement> {

    @Select("select * from announcement_category where id = #{id}")
    public Map getCategory(Long id);
}
